﻿namespace ZR.Model.System;
/// <summary>
/// 编码规则表
/// </summary>
[SugarTable("base_coderule")]
[Tenant("0")]
public class BaseCodeRule
{
    /// <summary>
    /// 代码
    /// </summary>
    [SugarColumn(IsPrimaryKey = true)]
    public string Code { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    public string Type { get; set; }
    
    /// <summary>
    /// 前缀
    /// </summary>
    public string Prefix { get; set; }
    
    /// <summary>
    /// 宽度
    /// </summary>
    public int Width { get; set; }
    
    /// <summary>
    /// 初始值
    /// </summary>
    public int IniVal { get; set; }
    
    /// <summary>
    /// 增量
    /// </summary>
    public int Step { get; set; }
    
    /// <summary>
    /// 终止值
    /// </summary>
    public int FinishVal { get; set; }
    
    /// <summary>
    /// 循环
    /// </summary>
    public int Cycle { get; set; }
    
    /// <summary>
    /// 后缀
    /// </summary>
    public string Sufix { get; set; }
    
    /// <summary>
    /// 分隔符
    /// </summary>
    public string JoinChar { get; set; }
    
    /// <summary>
    /// 填充符
    /// </summary>
    public string FillChar { get; set; }
    
    /// <summary>
    /// 类型值
    /// </summary>
    public string TypeVal { get; set; }
    
    /// <summary>
    /// 循环号
    /// </summary>
    public int CycleVal { get; set; }
    
    /// <summary>
    /// 当前值
    /// </summary>
    public int CurrVal { get; set; }
    
    /// <summary>
    /// 版本号
    /// </summary>
    public int Version { get; set; }
}